package snake.model;

import java.awt.*;

public class Entity {

    Image img;
    public int x, y;

    public Entity() {
    }

    public Entity(Image img, int x, int y) {
        this.img = img;
        this.x = x;
        this.y = y;
    }

    public void paint(Graphics g) {
        g.drawImage(img, x, y, null);
    }
}
